<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/api/experimental/authorization_config.proto

namespace Google\Api;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * Configuration of authorization.
 * This section determines the authorization provider, if unspecified, then no
 * authorization check will be done.
 * Example:
 *     experimental:
 *       authorization:
 *         provider: firebaserules.googleapis.com
 *
 * Generated from protobuf message <code>google.api.AuthorizationConfig</code>
 */
class AuthorizationConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * The name of the authorization provider, such as
     * firebaserules.googleapis.com.
     *
     * Generated from protobuf field <code>string provider = 1;</code>
     */
    private $provider = '';

    public function __construct() {
        \GPBMetadata\Google\Api\Experimental\AuthorizationConfig::initOnce();
        parent::__construct();
    }

    /**
     * The name of the authorization provider, such as
     * firebaserules.googleapis.com.
     *
     * Generated from protobuf field <code>string provider = 1;</code>
     * @return string
     */
    public function getProvider()
    {
        return $this->provider;
    }

    /**
     * The name of the authorization provider, such as
     * firebaserules.googleapis.com.
     *
     * Generated from protobuf field <code>string provider = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setProvider($var)
    {
        GPBUtil::checkString($var, True);
        $this->provider = $var;

        return $this;
    }

}

